package utils;


import java.io.File;


public class Utils
{
	public final static String cdm = "cdm";
    public final static String ics = "ics";
    
    public static String getExtension(File file)
    {
        String extension = null;
        String filename = file.getName();
        int i = filename.lastIndexOf('.');

        if (i > 0 &&  i < filename.length() - 1)
        {
            extension = filename.substring(i+1).toLowerCase();
        }
        
        return extension;
    }
}
